<?php

namespace app\admin\controller;

use think\Controller;
use app\admin\controller\Basecontroller;

class Manage extends Controller
{
	//显示主页面
	public function show()
	{
		$data = model('Rank')->show();
		// var_dump($data);
		// return json($data);
		$this->assign('data', $data);
		return $this->fetch();
	}

	//显示修改页面
	public function edit()
	{
		$id = input('id');
		$data = model('Rank')->adminFind($id);
		$this->assign('data', $data);
		return $this->fetch();
<<<<<<< HEAD
	}

	//显示添加页面
	public function add()
	{
		return $this->fetch();
=======

>>>>>>> 0c7a98820ab66a0531d3de664b1c0ea8c5863739
	}
}